<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<base href="<%=basePath%>">
<title>Edit Person</title>
<s:head />
</head>
<body>
	<h3>Register Yourself</h3>

	<s:form action="register">
		<s:textfield key="person.firstName" />
		<s:textfield key="person.lastName" />
		<s:textfield key="person.email" />
		<s:textfield key="person.phoneNumber" />
		<s:select key="person.sport" list="sports" />
		<s:radio key="person.gender" list="genders" />
		<s:select key="person.residency" list="states" listKey="stateAbbr"
			listValue="stateName" />
		<s:checkbox key="person.over21" />
		<s:checkboxlist key="person.carModels" list="carModelsAvailable"></s:checkboxlist>
		<s:submit value="Save" />
	</s:form>

	<p>
		<a href="<s:url action='../index' />">Return to home page</a>
	</p>
</body>
</html>